package com.ruyi.afterdemo.proxy.staticProxy.bugHouse;

import com.ruyi.afterdemo.proxy.staticProxy.BuyHouse;

/**
 * 静态代理类
 * @author 暮雨潇潇
 */
public class BuyHouseProxy implements BuyHouse {

    private BuyHouse buyHouse;

    public BuyHouseProxy(final BuyHouse buyHouse){
        this.buyHouse = buyHouse;
    }

    @Override
    public void buyHouse(){
        System.out.println("买房前准备");
        buyHouse.buyHouse();
        System.out.println("买房后装修");
    }

}
